package com.tqazy.hutool_email.exception;

import org.springframework.http.HttpStatus;

/**
 * @Classname BadRequestException
 * @Description TODO
 * @Date 2021/8/23 10:34
 * @Created by 陶其
 */
public class BadRequestException extends RuntimeException{

    private Integer status = HttpStatus.BAD_REQUEST.value();

    public BadRequestException(String msg) {
        super(msg);
    }

    public BadRequestException(HttpStatus status, String msg) {
        super(msg);
        this.status = status.value();
    }

}
